home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
os2
/
memsz313.zip
/
SOURCE.ZIP
/
ABOUT.CPP
next >
Wrap
Text File
|
1995-05-25
|
2KB
|
43 lines
/****************************************************************** ABOUT.CPP
* *
* Generic "About" Dialog *
* *
****************************************************************************/
#define INCL_BASE
#define INCL_PM
#include <os2.h>
#include "About.h"
/****************************************************************************
* *
* "About" Dialog Processor *
* *
****************************************************************************/
extern MRESULT EXPENTRY AboutProcessor ( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 ) {
switch ( msg ) {
case WM_INITDLG: {
WinAssociateHelpInstance ( WinQueryHelpInstance(WinQueryWindow(hwnd,QW_OWNER)), hwnd ) ;
return ( 0 ) ; }
case WM_COMMAND: {
switch ( SHORT1FROMMP(mp1) ) {
case DID_OK:
WinDismissDlg ( hwnd, TRUE ) ;
break ;
case DID_CANCEL:
WinDismissDlg ( hwnd, FALSE ) ;
break ;
} /* endswitch */
return ( 0 ) ; }
} /* endswitch */
return ( WinDefDlgProc ( hwnd, msg, mp1, mp2 ) ) ;
}